<!doctype html>
<html>
<head _tracker=''>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit">
<title>【瓜子二手车直卖网】——100%个人二手车-瓜子二手车直卖网</title>
<meta name="keywords" content="个人二手车网,二手车网,个人二手车,二手车,个人二手车评估,二手车评估,二手车评估师,个人二手车买卖,二手车门店,个人二手车检测,二手车检测,二手车交易市场" />
<meta name="description" content="瓜子二手车直卖网个人二手车交易提供以下保障：1、只提供最佳车况的个人二手车；2、最苛刻的检测标准保证0事故；3、无中间环节透明无差价；4、全程陪同交易免费代过户；5、无理由退车超长质保售后无忧。个人买卖二手车,就上瓜子二手车直卖网！" />

    <meta http-equiv="P3P" content='CP="CAO PSA OUR"' />
    <meta name="baidu-site-verification" content="3r3nh4dkLA" />
    <meta name="360-site-verification" content="f045c917619b6b3dc82ad5f699a09474" />
    <meta name="google-site-verification" content="FQph3WEY6ZqNqVXCB5PT4_u8f-WjfF14l2OOdFiOEmg" />
    <meta http-equiv="Cache-Control" content="no-transform " />
    <meta name="sogou_site_verification" content="qY406sTreO"/>
    <meta name="shenma-site-verification" content="7b096264bff0cf1031a570c37abed00c_1476775946">
    <link rel="stylesheet" type="text/css" href="/1.css">
    <!-- <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> -->
</head>
<script>
    var logged = true;
</script>
<style media="screen">
    .xixi{
        padding:150px 0px 150px 0px;
        width:928px;
        height:100px;
        text-align: center;
    }
</style>
<script type="text/javascript" src="/js/buycar1.js"></script><script type="text/javascript" src="/js/buycar2.js"></script><body class="list">
<body class="person-wrap">
<!-- 头部 -->
<div class="header-person">
    <input type="hidden" id="skipKindNew" value="0">
<!--<input type="hidden" id="firstSubLogin" value="0">-->
<input type="hidden" id="clueData" data-puid="" data-city-id="12">

<div id="jstop" class=header-2 >
    <div class = "header">
    <h1>
        <a href="/{{$city}}/" title="瓜子二手车">瓜子二手车</a>
    </h1>

    <div class="city">
        <!-- 鼠标悬停 .city添加class名active -->
        <p class="city-curr">
            北京<i></i>
        </p>
        <div class="white-line"></div>

        <div class="city-box all-city" >
            @foreach($citys as $k=>$v)
                            <dl>
                    <dt>{{$k}}</dt>

                                            <dd>
                                                @foreach($v as $key=>$value)
                                                    <a  href="/{{$key}}" title="{{$value}}二手车">{{$value}}</a>
                                                @endforeach
                                            </dd>

                </dl>
            @endforeach

                    </div>
    </div>

        <div class="header-phone">
            <!--电话判断，当页面处于汽车金融则显示汽车金融电话  -->
            400-630-3879        </div>

    <div class="uc js-uc js-uc-new" data-gzlog="tracking_type=click&eventid=1015123400000003">
            <a href="" class="uc-my" id="js-login">{{$username}}</a>
            <div class="uc-app" >
                <a href="/{{$city}}/user/collect" class="js-loginElem1" data-gzlog="tracking_type=click&eventid=1015123400000004">收藏车辆</a>
                <a href="" class="js-loginElem2" data-gzlog="tracking_type=click&eventid=1015123400000005">砍价记录</a>
                <!-- <a href="/bj/userhistory" class="js-loginElem3" data-gzlog="tracking_type=click&eventid=1015123400000006">浏览记录</a> -->
                <a href="/auth/logout" class="js-logout js-loginElem4" data-gzlog="tracking_type=click&eventid=1015123400000007">退出</a>
                <i></i>
            </div>
    </div>
    <div class="nav-list">
        <a class="fl " baidu_alog="pc_index_top_tab&click&pc_index_top_tab_sell_c"
           href="/{{$city}}/sellcar" data-gzlog="tracking_type=click&eventid=0010050000000009">我要卖车</a>
        <a class="fl " baidu_alog="pc_index_top_tab&click&pc_index_top_tab_buy_c"
           href="/{{$city}}/buy/"  data-gzlog="tracking_type=click&eventid=0010000000000008">我要买车</a>
        <a class="fl " baidu_alog="pc_index_top_tab&click&pc_index_top_tab_index_c"
           href="/"  data-gzlog="tracking_type=click&eventid=0010000000000007">首页</a>
    </div>
        </div>
</div>
<!-- 主体 s -->
<div class="person-main">
    <!-- 左菜单 s -->
    <div class="person-left js-left-side">
    <p class="user-img"></p>
    <p class="user-info">个人中心<span>手机号：{{$mobile}}</span></p>
    <ul class="user-menu">
        <li><a target="right" class="active" href="/{{$city}}/user/collect">收藏车辆</a></li>
        <li><a target="right" href="/{{$city}}/user/bargain">砍价记录</a></li>
        <!-- <li><a data-gzlog="tracking_type=click&amp;eventid=1016123400000006" href="https://www.guazi.com/bj/userhistory">浏览记录</a></li> -->
    </ul>
</div>    <!-- 左菜单 e -->

    <!-- 右列表 s -->
    <div class="person-right js-info-body" data-souce="Store" last-page="1" deal-puid="0;">
        <div class="person-source js-carList active">
            @if(isset($collection) && count($collection) != 0)
            <ul class="person-list clearfix" id="delCar">
                @foreach($collection as $v)
                      @foreach($v as $c)
                            <li class="list-infoBox js-oneInfo" store-id="34494079" puid="3001907036">
                                <input type="hidden" name="car_id" >
                    <a href="/{{$c->car_city}}/{{$c->car_id}}" class="info-img"><img src="{{$c->index_img_path}}" alt=""></a>
                    <span class="icon-delete js-delete-store-click"  value="{{$c->car_id}}">删除</span>
                                            <span class="icon-psell">降价急售</span>
                                        <a class="info-name" href="">{{$c->brand_name}}{{$c->year_type}} {{$c->year_type}} {{$c->emission}} {{$c->type}}</a>
                    <p class="info-mile">{{$c->reg_time}}上牌<em>|</em>行驶{{$c->mileage}}万公里</p>
                    <p class="info-price">
                        <span class="price-curr">{{$c->price}}万</span>
                                            </p>
                                    </li>
                    @endforeach
              @endforeach
            </ul>
            @elseif(!isset($collection))
            <div class="xixi">
                <div class="source-none js-load-text">暂无收藏车辆</div>
                <div class="source-btn"><a href="/{{$city}}/buy/">去逛逛瓜子海量车源 &gt;</a></div>
            </div>
            @endif

            <!-- <div class="loading-more active">已到最后一页</div> -->
        </div>

        <!-- 无记录 s -->

        <!-- 无记录 s -->
    </div>
    <!-- 右列表 e -->
<!-- {!! $v->render() !!} -->
</div>
</div>
@include('footer')
<script type="text/javascript">
    $('#delCar').click(function(ev){
        var car_id = $(ev.target).attr('value');
        //console.log(ev.target);

            $.ajax({
                type:"get",
                url:"/user/delete",
                data:{
                    'uid':{{$uid}},
                    'car_id':car_id
                },
                success:function(data){
                    if (data == 1) {
                        $(ev.target).parent().css('display','none');
                    }
                }
            });

    })
</script>

</body>
</html>
